package com.xmtlxx.tms.domain.vo;

import com.xmtlxx.common.annotation.ExcelDictFormat;
import com.xmtlxx.common.convert.ExcelDictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;



/**
 * 地址视图对象 t_address
 *
 * @author xmtlxx
 * @date 2022-08-15
 */
@Data
@ApiModel("地址视图对象")
@ExcelIgnoreUnannotated
public class AddressVo {

    private static final long serialVersionUID = 1L;

    /**
     * 地址ID
     */
    @ExcelProperty(value = "地址ID")
    @ApiModelProperty("地址ID")
    private String id;

    /**
     * 部门ID
     */
    @ExcelProperty(value = "部门ID")
    @ApiModelProperty("部门ID")
    private Long deptId;

    /**
     * 承运商ID
     */
    @ExcelProperty(value = "承运商ID")
    @ApiModelProperty("承运商ID")
    private String carrierId;

    /**
     * 货主ID
     */
    @ExcelProperty(value = "货主ID")
    @ApiModelProperty("货主ID")
    private String clientId;

    /**
     * 类型
     */
    @ExcelProperty(value = "类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "tms_address_type")
    @ApiModelProperty("类型")
    private String type;

    /**
     * 联系人
     */
    @ExcelProperty(value = "联系人")
    @ApiModelProperty("联系人")
    private String contacts;

    /**
     * 联系电话
     */
    @ExcelProperty(value = "联系电话")
    @ApiModelProperty("联系电话")
    private String tel;

    /**
     * 省份
     */
    @ExcelProperty(value = "省份")
    @ApiModelProperty("省份")
    private String province;

    /**
     * 市
     */
    @ExcelProperty(value = "市")
    @ApiModelProperty("市")
    private String city;

    /**
     * 县/区
     */
    @ExcelProperty(value = "县/区")
    @ApiModelProperty("县/区")
    private String area;

    /**
     * 省代码
     */
    @ExcelProperty(value = "省代码")
    @ApiModelProperty("省代码")
    private String provincecode;

    /**
     * 市代码
     */
    @ExcelProperty(value = "市代码")
    @ApiModelProperty("市代码")
    private String citycode;

    /**
     * 区代码
     */
    @ExcelProperty(value = "区代码")
    @ApiModelProperty("区代码")
    private String areacode;

    /**
     * 地址
     */
    @ExcelProperty(value = "地址")
    @ApiModelProperty("地址")
    private String addr;

    /**
     * 经度
     */
    @ExcelProperty(value = "经度")
    @ApiModelProperty("经度")
    private String lng;

    /**
     * 纬度
     */
    @ExcelProperty(value = "纬度")
    @ApiModelProperty("纬度")
    private String lat;

    /**
     * 默认
     */
    @ExcelProperty(value = "默认", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_yes_no")
    @ApiModelProperty("默认")
    private String flag;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_common_status")
    @ApiModelProperty("状态")
    private String status;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    @ApiModelProperty("创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 更新人
     */
    @ExcelProperty(value = "更新人")
    @ApiModelProperty("更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    @ApiModelProperty("更新时间")
    private Date updateTime;

    /**
     * 删除标识
     */
    @ExcelProperty(value = "删除标识", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_del_flag")
    @ApiModelProperty("删除标识")
    private String delFlag;

    private String clientName;

    /**
     * 是否展示承运商筛选
     */
    private Boolean isShow;
}
